import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:delivery_application/common_widget/round_button.dart';
import 'package:delivery_application/common_widget/round_textfield.dart';
import 'package:delivery_application/view/login/rest_password_view.dart';
import 'package:delivery_application/view/login/sign_up_view.dart';

class SuccessDiliver extends StatefulWidget {
  const SuccessDiliver({super.key});

  @override
  State<SuccessDiliver> createState() => _SuccessDiliverState();
}

class _SuccessDiliverState extends State<SuccessDiliver> {
  //
  TextEditingController txtordernumber = TextEditingController();
  TextEditingController txtaddress = TextEditingController();
  @override
  Widget build(BuildContext context) {
    var media = MediaQuery.of(context).size; // 获取当前设备的屏幕尺寸信息
    return Scaffold(
      backgroundColor: Color(0xff00AEEE),
      body: SingleChildScrollView(
        child: Padding(
          // Padding用于为子部件周围添加内边距（空白区域）
          padding: const EdgeInsets.symmetric(
              vertical: 20, horizontal: 25), // 添加垂直和水平方向上的内边距
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              const SizedBox(
                height: 64,
              ),

              // 第一个图片居中
              Center(
                child: Image.asset(
                  "assets/img/4.png",
                  width: media.width * 0.7,
                  height: media.height * 0.3,
                  fit: BoxFit.contain,
                ),
              ),

              SizedBox(height: 5), // 垂直间距

              // 第二个图片居中
              Center(
                child: Image.asset(
                  "assets/img/5.png",
                  width: media.width * 0.5,
                  height: media.height * 0.2,
                  fit: BoxFit.contain,
                ),
              ),

              SizedBox(height: 1), // 垂直间距

              // 第三个图片居中
              Center(
                child: Image.asset(
                  "assets/img/7.png",
                  width: media.width * 0.8,
                  height: media.height * 0.4,
                  fit: BoxFit.contain,
                ),
              ),

              //SizedBox(height: 10),
            ],
          ),
        ),
      ),
    );
  }
}
